home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / includes / pmeventrec.h < prev    next >
C/C++ Source or Header  |  1996-11-18  |  5KB  |  133 lines

  1. /**[f******************************************************************
  2.  *    PMEvtRec.h -- PageMaker Event Records
  3.  *
  4.  *    Copyright (c) 1996 Adobe Systems, Inc. All Rights Reserved
  5.  *
  6.  *    
  7.  * ABSTRACT:  
  8.  *         This file contains record definitions for various PM events.
  9.  *
  10.  * USAGE: 
  11.  *
  12.  * ROUTINES DEFINED:
  13.  *
  14.  *
  15.  *
  16.  **f]******************************************************************/ 
  17. #ifndef _PMEVTREC_H
  18. #define _PMEVTREC_H
  19.  
  20. #include "CIObjectAccess.h"
  21.  
  22. // Plugin filespec
  23. typedef struct _PMFILE_SPEC_REC {
  24.     char            *pfileName;                // address of File name. 
  25. #ifdef MACINTOSH 
  26.     short            *vRefNum;               // Volume or WD ref number 
  27.     long            *dirID;
  28. #endif // MACINTOSH
  29. } PMFILESPEC, *PPMFILESPEC;
  30.  
  31. #ifndef RID
  32. typedef unsigned long RID;
  33. #endif
  34.                         
  35. // Event Record for PMEVT_OPENPUB_BEFORE
  36. typedef struct _PMOPENPUB_REC {
  37.     PMFILESPEC    *pfSpec;        // address containing the pub's filespec
  38.     unsigned short        openCopy;        // == 1 for Open Copy, == 0 for Open Original
  39. } PMEVT_OPENPUB_REC, *PPMEVT_OPENPUB_REC;
  40.  
  41. // Event Record for PMEVT_INSERTPAGES_BEFORE
  42. typedef struct _PMINSERTPAGES_REC {
  43.     unsigned short        firstnewpage;    // Page number of page to add before 
  44.     unsigned short        numpages;        // Number of pages to add
  45.     RID                    idleftmp;        // left master page index 
  46.     RID                    idrightmp;        // right master page index 
  47. } PMEVT_INSERTPAGES_REC, *PPMEVT_INSERTPAGES_REC;
  48.  
  49. // Event Record for PMEVT_REMOVEPAGES_BEFORE
  50. typedef struct _PMREMOVEPAGES_REC {
  51.     unsigned short        firstremovedpage;    // Page number of page to remove 
  52.     unsigned short        numremoved;            // Number of pages to remove
  53. } PMEVT_REMOVEPAGES_REC, *PPMEVT_REMOVEPAGES_REC;
  54.  
  55. // Event Record for PMEVT_DELETEOBJECT_BEFORE 
  56. typedef struct _PMDELETEOBJECT_REC {
  57.     unsigned short            deleteState;    // =1 when first delete/redo delete, =2 for undodelete, =3 for CommitDelete
  58.     PMOBJ_REC        objAccRec;        // object record for ObjectAccess interface
  59. } PMEVT_DELETEOBJECT_REC, *PPMEVT_DELETEOBJECT_REC;
  60.  
  61. // Event Record for PMEVT_MULTIPLEPASTE_BEFORE
  62. typedef struct _PMMULTIPLEPASTE {
  63.     unsigned short    numMultiPastes;            // num times to repeat the paste
  64.     long    pasteHorizOffset;        // X offset for each paste of object
  65.     long    pasteVertOffset;        // Y offset for each paste of object
  66. } PMEVT_MULTIPLEPASTE_REC, *PPMEVT_MULTIPLEPASTE_REC;
  67.  
  68. // Event Record for PMEVT_LAYOUT_DRAWOBJECT_BEFORE
  69. typedef struct _PMLAYOUT_DRAWOBJECT_REC {
  70.     unsigned short            bPrinting;        // =0 for display, =1 for print
  71.     PMOBJ_REC        objAccRec;        // object record for ObjectAccess interface
  72. } PMEVT_LAYOUT_DRAWOBJECT_REC, *PPMEVT_LAYOUT_DRAWOBJECT_REC;
  73.  
  74. // Event Record for PMEVT_EXPORT_BEFORE, PMEVT_PLACE_BEFORE, PMEVT_SAVEGRAPHIC_BEFORE
  75. typedef struct _PMFILESPEC_REC {
  76.     PMFILESPEC    *pfSpec;        // address containing the file's filespec
  77. } PMEVT_FILESPEC_REC, *PPMEVT_FILESPEC_REC;
  78.  
  79. // Event Record for PMEVT_RELINK_AFER
  80. typedef struct _PMRELINK_REC {
  81.     PMFILESPEC    *pOldFSpec;        // address containing the old graphic's filespec
  82.     PMFILESPEC    *pNewFSpec;        // address containing the new graphic's filespec
  83. } PMEVT_RELINK_REC, *PPMEVT_RELINK_REC;
  84.  
  85. // Event Record for PMEVT_MENUCOMMAND_BEFORE
  86. typedef struct _PMMENUCOMMAND {
  87.     unsigned short        menuItemID;        // PageMaker menu item ID
  88.     unsigned short        menuGroupID;    // PageMaker menu group ID
  89. } PMEVT_MENUCOMMAND_REC, *PPMEVT_MENUCOMMAND_REC;
  90.  
  91. // Event Record for PMEVT_GOTOPAGE_BEFORE
  92. typedef struct _PMGOTOPAGE_REC {
  93.     unsigned short        newPage;        // page number to goto
  94.     unsigned short        isaMasterPage;    // =1 if going to a master page, else =0
  95. } PMEVT_GOTOPAGE_REC, *PPMEVT_GOTOPAGE_REC;
  96.  
  97. // Event Record for PMEVT_OBJECT_DBLCLICK_BEFORE
  98. typedef struct _PM_OBJECT_DBLCLICK_REC {
  99.     PMOBJ_REC    objAccRec;        // object record for ObjectAccess interface
  100. } PMEVT_OBJECT_DBLCLICK_REC, *PPMEVT_OBJECT_DBLCLICK_REC;
  101.  
  102. // Event Record for PMEVT_PLUGIN_COMMAND_BEFORE & PMEVT_PLUGIN_COMMAND_AFTER
  103. typedef struct _PMPLUGINCOMMAND {
  104.     unsigned short        ComandID;        // Plugin Command ID
  105.     long        retCode;        // Retcode for PMEVT_PLUGIN_COMMAND_AFTER only
  106.     void *        ParamData;        // ParamData - need PMIBasic GetParm routines
  107. } PMEVT_PLUGIN_COMMAND, *PPMEVT_PLUGIN_COMMAND; 
  108.  
  109. // Event Record for PMEVT_OBJEDIT_MEDIA_IMAGE
  110. typedef struct
  111. {
  112.     PMOBJ_REC    objAccRec;
  113.     char        mediaType[4];
  114.     char        pluginType[4];
  115. } PMEVT_OBJEDIT_MEDIA_IMAGE_REC, *PPMEVT_OBJEDIT_MEDIA_IMAGE_REC;
  116.  
  117. // Event Record for PMEVT_STYLE_AFTER
  118. typedef struct _PMSTYLE_REC {
  119.     unsigned short        bEditStyle;        // =1 for edit only, =0 apply to current selection/default
  120. } PMEVT_STYLE_REC, *PPMEVT_STYLE_REC;
  121.  
  122. // Event Record for PMEVT_COLOR_AFTER
  123. typedef struct _PMCOLOR_REC {
  124.     unsigned short        bEditColor;        // =1 for edit only, =0 apply to current selection/default
  125. } PMEVT_COLOR_REC, *PPMEVT_COLOR_REC;
  126.  
  127. // Event Record for PMEVT_HLINK_CLICK_REC
  128. typedef struct _PMEVT_HLINK_CLICK_REC {
  129.     unsigned long        hcmObjectId;    // hcm object id
  130. } PMEVT_HLINK_CLICK_REC, *PPMEVT_HLINK_CLICK_REC;
  131.  
  132. #endif    // _PMEVTREC_H
  133.